//
//  LocalPhotoCell.m
//  BigTv
//
//  Created by are on 13-1-4.
//  Copyright (c) 2013年 huliang. All rights reserved.
//

#import "LocalPhotoCell.h"

@implementation LocalPhotoCell
@synthesize rowNumber;
@synthesize photo1,photo2,photo3;
@synthesize selectionDelegate;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}
- (UIImageView *)photo1 {
    return photo1;
}

- (UIImageView *)photo2 {
    return photo2;
}
- (UIImageView *)photo3 {
    return photo3;
}
- (void)awakeFromNib {
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    photo1.delegate = self;
    photo2.delegate = self;
    photo3.delegate = self;

}
- (void)thumbnailImageViewWasSelected:(ThumbnailImageView *)thumbnailImageView {
    
    NSUInteger selectedPhotoIndex = 0;
    if (thumbnailImageView == photo1) {
        selectedPhotoIndex = 0;
        
    } else if (thumbnailImageView == photo2) {
        
        selectedPhotoIndex = 1;
    } else if (thumbnailImageView == photo3) {
        
        selectedPhotoIndex = 2;
    }
    
    [selectionDelegate albumContentsTableViewCell:self selectedPhotoAtIndex:selectedPhotoIndex];
    
}
- (void)thumbnailImageViewWasSelectedForTitleSetAbandon:(ThumbnailImageView *)thumbnailImageView;
{
    
}
- (void)thumbnailImageViewWasSelectedForTitleSet:(ThumbnailImageView *)thumbnailImageView
{
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
